<h1>Listing auctings</h1>

<table>
  <tr>
    <th>User</th>
    <th>Product</th>
    <th>Price</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% auctings.each do |aucting| %>
  <tr>
    <td><%= aucting.user_id %></td>
    <td><%= aucting.product_id %></td>
    <td><%= aucting.price %></td>
    <td><%= link_to 'Show', aucting %></td>
    <td><%= link_to 'Edit', edit_aucting_path(aucting) %></td>
    <td><%= link_to 'Destroy', aucting, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Aucting', new_aucting_path %>
